package com.rd.modules.user.model.ao;

import com.rd.modules.group.AddGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

/**
 * @ClassName UserDTO
 * @Description TODO
 * @Author zyy
 * @Date 2025/2/12 20:49
 * @Version 1.0
 **/
@Data
public class UserAO {
    /**
     * id主键
     */
    private String id;
    /**
     * openId
     */
    @NotBlank(message = "openId不能为空", groups = {AddGroup.class})
    private String openId;
    /**
     * 头像
     */
    @Length(max = 255, message = "头像过长", groups = {AddGroup.class})
    private String avatar;
    /**
     * 昵称
     */
    @Length(max = 50, message = "昵称过长", groups = {AddGroup.class})
    private String nickname;
    /**
     * 性别
     */
    @Range(min = 0, max = 1, message = "性别字段不符合规范", groups = {AddGroup.class})
    private Integer gender;
    /**
     * 头像Base64
     */
    private String avatarBase;
}
